package com.sasis.model;
// Generated 2007-6-7 11:59:10 by Hibernate Tools 3.1.0.beta4

import java.sql.Date;
import java.sql.Timestamp;


/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="FLIGHT_TRANSFER_PROTECT"
 *     
 */

public class FlightTransferProtect extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    private Integer id;
    private Integer flightTransferInfoId;
    private String foodAcceptor;
    private Timestamp foodAcceptDate;
    private String foodAcceptMemo;
    private String foodMemo;
    private String hotelMemo;
    private String phone;
    private Timestamp ferryTime;
    private Integer operator;
    private Timestamp operatDate;


    // Constructors

    /** default constructor */
    public FlightTransferProtect() {
    }

	/** minimal constructor */
    public FlightTransferProtect(Integer flightTransferInfoId) {
        this.flightTransferInfoId = flightTransferInfoId;
    }
    
    /** full constructor */
    public FlightTransferProtect(Integer flightTransferInfoId, String foodAcceptor, Timestamp foodAcceptDate, String foodAcceptMemo, String foodMemo, String hotelMemo, String phone, Timestamp ferryTime, Integer operator, Timestamp operatDate) {
        this.flightTransferInfoId = flightTransferInfoId;
        this.foodAcceptor = foodAcceptor;
        this.foodAcceptDate = foodAcceptDate;
        this.foodAcceptMemo = foodAcceptMemo;
        this.foodMemo = foodMemo;
        this.hotelMemo = hotelMemo;
        this.phone = phone;
        this.ferryTime = ferryTime;
        this.operator = operator;
        this.operatDate = operatDate;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="FLIGHT_TRANSFER_INFO_ID"
     *             length="22"
     *             not-null="true"
     *         
     */

    public Integer getFlightTransferInfoId() {
        return this.flightTransferInfoId;
    }
    
    public void setFlightTransferInfoId(Integer flightTransferInfoId) {
        this.flightTransferInfoId = flightTransferInfoId;
    }
    /**       
     *      *            @hibernate.property
     *             column="FOOD_ACCEPTOR"
     *             length="32"
     *         
     */

    public String getFoodAcceptor() {
        return this.foodAcceptor;
    }
    
    public void setFoodAcceptor(String foodAcceptor) {
        this.foodAcceptor = foodAcceptor;
    }
    /**       
     *      *            @hibernate.property
     *             column="FOOD_ACCEPT_DATE"
     *             length="7"
     *         
     */

    public Timestamp getFoodAcceptDate() {
        return this.foodAcceptDate;
    }
    
    public void setFoodAcceptDate(Timestamp foodAcceptDate) {
        this.foodAcceptDate = foodAcceptDate;
    }
    /**       
     *      *            @hibernate.property
     *             column="FOOD_ACCEPT_MEMO"
     *             length="1024"
     *         
     */

    public String getFoodAcceptMemo() {
        return this.foodAcceptMemo;
    }
    
    public void setFoodAcceptMemo(String foodAcceptMemo) {
        this.foodAcceptMemo = foodAcceptMemo;
    }
    /**       
     *      *            @hibernate.property
     *             column="FOOD_MEMO"
     *             length="1024"
     *         
     */

    public String getFoodMemo() {
        return this.foodMemo;
    }
    
    public void setFoodMemo(String foodMemo) {
        this.foodMemo = foodMemo;
    }
    /**       
     *      *            @hibernate.property
     *             column="HOTEL_MEMO"
     *             length="1024"
     *         
     */

    public String getHotelMemo() {
        return this.hotelMemo;
    }
    
    public void setHotelMemo(String hotelMemo) {
        this.hotelMemo = hotelMemo;
    }
    /**       
     *      *            @hibernate.property
     *             column="PHONE"
     *             length="32"
     *         
     */

    public String getPhone() {
        return this.phone;
    }
    
    public void setPhone(String phone) {
        this.phone = phone;
    }
    /**       
     *      *            @hibernate.property
     *             column="FERRY_TIME"
     *             length="7"
     *         
     */

    public Timestamp getFerryTime() {
        return this.ferryTime;
    }
    
    public void setFerryTime(Timestamp ferryTime) {
        this.ferryTime = ferryTime;
    }
    /**       
     *      *            @hibernate.property
     *             column="OPERATOR"
     *             length="22"
     *         
     */

    public Integer getOperator() {
        return this.operator;
    }
    
    public void setOperator(Integer operator) {
        this.operator = operator;
    }
    /**       
     *      *            @hibernate.property
     *             column="OPERAT_DATE"
     *             length="7"
     *         
     */

    public Timestamp getOperatDate() {
        return this.operatDate;
    }
    
    public void setOperatDate(Timestamp operatDate) {
        this.operatDate = operatDate;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("flightTransferInfoId").append("='").append(getFlightTransferInfoId()).append("' ");			
      buffer.append("foodAcceptor").append("='").append(getFoodAcceptor()).append("' ");			
      buffer.append("foodAcceptDate").append("='").append(getFoodAcceptDate()).append("' ");			
      buffer.append("foodAcceptMemo").append("='").append(getFoodAcceptMemo()).append("' ");			
      buffer.append("foodMemo").append("='").append(getFoodMemo()).append("' ");			
      buffer.append("hotelMemo").append("='").append(getHotelMemo()).append("' ");			
      buffer.append("phone").append("='").append(getPhone()).append("' ");			
      buffer.append("ferryTime").append("='").append(getFerryTime()).append("' ");			
      buffer.append("operator").append("='").append(getOperator()).append("' ");			
      buffer.append("operatDate").append("='").append(getOperatDate()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof FlightTransferProtect) ) return false;
		 FlightTransferProtect castOther = ( FlightTransferProtect ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getFlightTransferInfoId()==castOther.getFlightTransferInfoId()) || ( this.getFlightTransferInfoId()!=null && castOther.getFlightTransferInfoId()!=null && this.getFlightTransferInfoId().equals(castOther.getFlightTransferInfoId()) ) )
 && ( (this.getFoodAcceptor()==castOther.getFoodAcceptor()) || ( this.getFoodAcceptor()!=null && castOther.getFoodAcceptor()!=null && this.getFoodAcceptor().equals(castOther.getFoodAcceptor()) ) )
 && ( (this.getFoodAcceptDate()==castOther.getFoodAcceptDate()) || ( this.getFoodAcceptDate()!=null && castOther.getFoodAcceptDate()!=null && this.getFoodAcceptDate().equals(castOther.getFoodAcceptDate()) ) )
 && ( (this.getFoodAcceptMemo()==castOther.getFoodAcceptMemo()) || ( this.getFoodAcceptMemo()!=null && castOther.getFoodAcceptMemo()!=null && this.getFoodAcceptMemo().equals(castOther.getFoodAcceptMemo()) ) )
 && ( (this.getFoodMemo()==castOther.getFoodMemo()) || ( this.getFoodMemo()!=null && castOther.getFoodMemo()!=null && this.getFoodMemo().equals(castOther.getFoodMemo()) ) )
 && ( (this.getHotelMemo()==castOther.getHotelMemo()) || ( this.getHotelMemo()!=null && castOther.getHotelMemo()!=null && this.getHotelMemo().equals(castOther.getHotelMemo()) ) )
 && ( (this.getPhone()==castOther.getPhone()) || ( this.getPhone()!=null && castOther.getPhone()!=null && this.getPhone().equals(castOther.getPhone()) ) )
 && ( (this.getFerryTime()==castOther.getFerryTime()) || ( this.getFerryTime()!=null && castOther.getFerryTime()!=null && this.getFerryTime().equals(castOther.getFerryTime()) ) )
 && ( (this.getOperator()==castOther.getOperator()) || ( this.getOperator()!=null && castOther.getOperator()!=null && this.getOperator().equals(castOther.getOperator()) ) )
 && ( (this.getOperatDate()==castOther.getOperatDate()) || ( this.getOperatDate()!=null && castOther.getOperatDate()!=null && this.getOperatDate().equals(castOther.getOperatDate()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getFlightTransferInfoId() == null ? 0 : this.getFlightTransferInfoId().hashCode() );
         result = 37 * result + ( getFoodAcceptor() == null ? 0 : this.getFoodAcceptor().hashCode() );
         result = 37 * result + ( getFoodAcceptDate() == null ? 0 : this.getFoodAcceptDate().hashCode() );
         result = 37 * result + ( getFoodAcceptMemo() == null ? 0 : this.getFoodAcceptMemo().hashCode() );
         result = 37 * result + ( getFoodMemo() == null ? 0 : this.getFoodMemo().hashCode() );
         result = 37 * result + ( getHotelMemo() == null ? 0 : this.getHotelMemo().hashCode() );
         result = 37 * result + ( getPhone() == null ? 0 : this.getPhone().hashCode() );
         result = 37 * result + ( getFerryTime() == null ? 0 : this.getFerryTime().hashCode() );
         result = 37 * result + ( getOperator() == null ? 0 : this.getOperator().hashCode() );
         result = 37 * result + ( getOperatDate() == null ? 0 : this.getOperatDate().hashCode() );
         return result;
   }   





}
